package org.lucava.boatskeeper.client.event.user;

import com.google.gwt.event.shared.GwtEvent;
import java.util.List;

public class DeleteUsersEvent extends GwtEvent<UserHandler> {

    final private List<Integer> userIds;
    public static Type<UserHandler> TYPE = new Type<UserHandler>();

    public DeleteUsersEvent(List<Integer> userIds) {
        this.userIds = userIds;
    }

    public List<Integer> getUserIds() {
        return userIds;
    }

    @Override
    public Type<UserHandler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(UserHandler handler) {
        handler.onDeleteUsers(this);
    }
}